Optimal. Leaf size=57 \[ -\frac {a^2 \sqrt {a+\frac {b}{x^2}}}{b^3}+\frac {2 a \left (a+\frac {b}{x^2}\right )^{3/2}}{3 b^3}-\frac {\left (a+\frac {b}{x^2}\right )^{5/2}}{5 b^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 57, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 15, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.133, Rules used = {272, 45}
\begin {gather*} -\frac {a^2 \sqrt {a+\frac {b}{x^2}}}{b^3}-\frac {\left (a+\frac {b}{x^2}\right )^{5/2}}{5 b^3}+\frac {2 a \left (a+\frac {b}{x^2}\right )^{3/2}}{3 b^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 45
Rule 272
Rubi steps
\begin {align*} \int \frac {1}{\sqrt {a+\frac {b}{x^2}} x^7} \, dx &=-\left (\frac {1}{2} \text {Subst}\left (\int \frac {x^2}{\sqrt {a+b x}} \, dx,x,\frac {1}{x^2}\right )\right )\\ &=-\left (\frac {1}{2} \text {Subst}\left (\int \left (\frac {a^2}{b^2 \sqrt {a+b x}}-\frac {2 a \sqrt {a+b x}}{b^2}+\frac {(a+b x)^{3/2}}{b^2}\right ) \, dx,x,\frac {1}{x^2}\right )\right )\\ &=-\frac {a^2 \sqrt {a+\frac {b}{x^2}}}{b^3}+\frac {2 a \left (a+\frac {b}{x^2}\right )^{3/2}}{3 b^3}-\frac {\left (a+\frac {b}{x^2}\right )^{5/2}}{5 b^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 42, normalized size = 0.74 \begin {gather*} -\frac {\sqrt {a+\frac {b}{x^2}} \left (3 b^2-4 a b x^2+8 a^2 x^4\right )}{15 b^3 x^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.04, size = 50, normalized size = 0.88
method | result | size |
trager | \(-\frac {\left (8 a^{2} x^{4}-4 a b \,x^{2}+3 b^{2}\right ) \sqrt {-\frac {-a \,x^{2}-b}{x^{2}}}}{15 x^{4} b^{3}}\) | \(47\) |
gosper | \(-\frac {\left (a \,x^{2}+b \right ) \left (8 a^{2} x^{4}-4 a b \,x^{2}+3 b^{2}\right )}{15 x^{6} b^{3} \sqrt {\frac {a \,x^{2}+b}{x^{2}}}}\) | \(50\) |
default | \(-\frac {\left (a \,x^{2}+b \right ) \left (8 a^{2} x^{4}-4 a b \,x^{2}+3 b^{2}\right )}{15 x^{6} b^{3} \sqrt {\frac {a \,x^{2}+b}{x^{2}}}}\) | \(50\) |
risch | \(-\frac {\left (a \,x^{2}+b \right ) \left (8 a^{2} x^{4}-4 a b \,x^{2}+3 b^{2}\right )}{15 x^{6} b^{3} \sqrt {\frac {a \,x^{2}+b}{x^{2}}}}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.30, size = 47, normalized size = 0.82 \begin {gather*} -\frac {{\left (a + \frac {b}{x^{2}}\right )}^{\frac {5}{2}}}{5 \, b^{3}} + \frac {2 \, {\left (a + \frac {b}{x^{2}}\right )}^{\frac {3}{2}} a}{3 \, b^{3}} - \frac {\sqrt {a + \frac {b}{x^{2}}} a^{2}}{b^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.35, size = 42, normalized size = 0.74 \begin {gather*} -\frac {{\left (8 \, a^{2} x^{4} - 4 \, a b x^{2} + 3 \, b^{2}\right )} \sqrt {\frac {a x^{2} + b}{x^{2}}}}{15 \, b^{3} x^{4}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 750 vs.
\(2 (49) = 98\).
time = 1.05, size = 750, normalized size = 13.16 \begin {gather*} - \frac {8 a^{\frac {15}{2}} b^{\frac {9}{2}} x^{10} \sqrt {\frac {a x^{2}}{b} + 1}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} - \frac {20 a^{\frac {13}{2}} b^{\frac {11}{2}} x^{8} \sqrt {\frac {a x^{2}}{b} + 1}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} - \frac {15 a^{\frac {11}{2}} b^{\frac {13}{2}} x^{6} \sqrt {\frac {a x^{2}}{b} + 1}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} - \frac {5 a^{\frac {9}{2}} b^{\frac {15}{2}} x^{4} \sqrt {\frac {a x^{2}}{b} + 1}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} - \frac {5 a^{\frac {7}{2}} b^{\frac {17}{2}} x^{2} \sqrt {\frac {a x^{2}}{b} + 1}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} - \frac {3 a^{\frac {5}{2}} b^{\frac {19}{2}} \sqrt {\frac {a x^{2}}{b} + 1}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} + \frac {8 a^{8} b^{4} x^{11}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} + \frac {24 a^{7} b^{5} x^{9}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} + \frac {24 a^{6} b^{6} x^{7}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} + \frac {8 a^{5} b^{7} x^{5}}{15 a^{\frac {11}{2}} b^{7} x^{11} + 45 a^{\frac {9}{2}} b^{8} x^{9} + 45 a^{\frac {7}{2}} b^{9} x^{7} + 15 a^{\frac {5}{2}} b^{10} x^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.44, size = 81, normalized size = 1.42 \begin {gather*} \frac {16 \, {\left (10 \, {\left (\sqrt {a} x - \sqrt {a x^{2} + b}\right )}^{4} - 5 \, {\left (\sqrt {a} x - \sqrt {a x^{2} + b}\right )}^{2} b + b^{2}\right )} a^{\frac {5}{2}}}{15 \, {\left ({\left (\sqrt {a} x - \sqrt {a x^{2} + b}\right )}^{2} - b\right )}^{5} \mathrm {sgn}\left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 1.28, size = 56, normalized size = 0.98 \begin {gather*} -\frac {3\,b^2\,\sqrt {a+\frac {b}{x^2}}+8\,a^2\,x^4\,\sqrt {a+\frac {b}{x^2}}-4\,a\,b\,x^2\,\sqrt {a+\frac {b}{x^2}}}{15\,b^3\,x^4} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________